package com.soul.common.msg;

/**
 * @author grass
 * @version 1.0
 * @date 2022/9/5 14:55
 */
public enum ResultEnum {

    SUCCESS(200,"请求成功",true),
    ERROR(1088,"系统异常",false),
    TOKEN_LAPSE(5005,"token过期",false),
    LOGIN_ERROR(1088,"用户名不存在或密码错误",false),

    ;

    private Integer status;
    private String msg;
    private final boolean success;

    ResultEnum(Integer status, String msg, boolean success){
        this.status = status;
        this.msg = msg;
        this.success = success;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }
}
